package com.situ.stmall.admin.service;

import com.situ.stmall.admin.entity.Root;

public interface RootService {
	/**
	 * 登陆
	 * @throws Exception 
	 */
	Root login(Root root) throws Exception;
	
	/**
	 * 修改信息
	 * @throws Exception 
	 */
	Root editRoot(Root root,String repassword) throws Exception;

	/**
	 * 注册信息
	 * @param root
	 * @throws Exception 
	 */
	Root reg(Root root,String repassword) throws Exception;

	/**
	 * 根据用户名查询用户
	 * @param rootname
	 * @return
	 */
	Root getByRootName(String rootname);
}
